'use strict';

// import {FormData} from 'react-native';

 
export const getLocalIcon = (imageString) => {
    let source;
    switch(imageString){
        case '../images/zhcs/location.png':
            source=require('../images/zhcs/location.png');
            break;
        case '../images/zhcs/certify.png':
            source=require('../images/zhcs/certify.png');
            break;
        case '../images/zhcs/shezhi.png':
            source=require('../images/zhcs/shezhi.png');
            break;
        case '../images/zhcs/user.png':
            source=require('../images/zhcs/user.png');
            break;
        case '../images/zhcs/ic_tab_category.png':
            source=require('../images/zhcs/ic_tab_category.png');
            break;
        case '../images/zhcs/bookBtn.png':
            source=require('../images/zhcs/bookBtn.png');
            break;
        case '../images/zhcs/book.png':
            source=require('../images/zhcs/book.png');
            break;
        case '../images/zhcs/navBtn.png':
            source=require('../images/zhcs/navBtn.png');
            break;
        case '../images/zhcs/addres_nav.png':
            source=require('../images/zhcs/addres_nav.png');
            break;
        case '../images/zhcs/start_icon.png':
            source=require('../images/zhcs/start_icon.png');
            break;
        case '../images/zhcs/stop_icon.png':
            source=require('../images/zhcs/stop_icon.png');
            break;
        case '../images/zhcs/zhcsheader.jpeg':
            source=require('../images/zhcs/zhcsheader.jpeg');
            break;
        case '../images/ic_center_right_arrow.png':
            source=require('../images/ic_center_right_arrow.png');
            break;
        default:
            break;
    }
    return source;

};


export const getIcon = (imageString) => 
{
    let source=getLocalIcon(imageString);
    if(source)return source;
    else{
        return {uri:imageString};
    }
};
